$import( "SmitearWebGL.Objects.Parser.Collada.DaeEntity" );

SmitearWebGL.Objects.Parser.Collada.DaeSurface = SmitearWebGL.Objects.Parser.Collada.DaeEntity.extend(
{
	/******** constructor ********/

	init : function( document, node )
	{
		this.type = "";
		this.init_from = "";

		this._super( document, node );
		this._registClass( "SmitearWebGL.Objects.Parser.Collada.DaeSurface" );
	}
	,
	read : function( node )
	{
		$THROW( node.localName == SmitearWebGL.Objects.Parser.Collada.Const.DAE_FXCMN_SURFACE_ELEMENT,
		"expected a '" + SmitearWebGL.Objects.Parser.Collada.Const.DAE_FXCMN_SURFACE_ELEMENT + "' element" );

		this._super( node );

		this.type = this.getAttribute( node, SmitearWebGL.Objects.Parser.Collada.Const.DAE_TYPE_ATTRIBUTE );
		this.init_from = this.getNodeContent( this.getNode( node, SmitearWebGL.Objects.Parser.Collada.Const.DAE_INITFROM_ELEMENT ) );

		$LOG( " => => surface type: " + this.type + " init_from: " + this.init_from );
	}
}
);